﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CRM.Database.Model.TechnicRequestsExt>" %>
<%--<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CRM.Models.TechnicRequestsExt>" %>--%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Заявка №  <%:Model.Request.IdTechnicRequest.ToString()%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Заявка №  <%:Model.Request.IdTechnicRequest.ToString()%></h2>

<% var customersCol = new CRM.Database.Model.CustomersCollection(); %>

<%
    Html.DevExpress().PageControl(settings =>
    {
        settings.Name = "pcFeatures";
        settings.TabPages.Add(CRM.Resourses.Resourses.General).SetContent(() => Html.RenderPartial("TechnicRequestEditPartial", Model));
        //settings.TabPages.Add(CRM.Resourses.Resourses.TechnicCustomerEquipment).SetContent(() => Html.RenderPartial("TechnicCustomerEquipmentEdit", DB.GetCustomerById(Model.Request.IdCustomer)));
        //settings.TabPages.Add(CRM.Resourses.Resourses.TechnicCustomerEquipment).SetContent(() => Html.RenderPartial("TechnicCustomerEquipmentEdit", (CRM.Database.Model.Customers)customersCol.GetItemById(Model.Request.IdCustomer)));
    }).GetHtml(); %>

<%--<% Html.RenderPartial("TechnicRequestEditPartial"); %>--%>

</asp:Content>
